<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
  <!-- 提现记录 -->
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<!-- <li>
								用户编号：<input type="text" name="userId"/>
							</li> -->
							<li>
								提现状态：<select name="sTATUS" th:with="type=${@dict.getType('money_status')}">
									<option value="">所有</option>
									<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
								</select>
							</li>

							<li class="select-time">
								<label>创建时间： </label>
								<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
								<span>-</span>
								<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
							</li>

							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			<!-- <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
				<a class="btn btn-warning" onclick="$.table.exportExcel()">
		            <i class="fa fa-download"></i> 导出
		        </a>
	        </div> -->
			
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
    	var statusType = [[${@dict.getType('money_status')}]];
    	var moneyChange = [[${@dict.getType('moneyChange_status')}]];
    	var removeFlag = [[${@permission.hasPermi('system:hatchetMoneyChange:edit')}]];
    	var prefix = ctx + "system/hatchetMoneyChangeForDLS";
        $(function() {
            var options = {
                url: prefix + "/tiXianJLForDLS",
                modalName: "提现记录",
				search: false,
		        showExport: false,
               	columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '主键id',
					visible: false
				},
				/* {
					field : 'userId', 
					title : '用户编号',
					sortable: true
				}, */
			
				{
					field : 'merType', 
					title : '用户类型',
					align : 'left',
					formatter: function(value, item, index) {
	            		return $.table.selectDictLabel(moneyChange, item.merType);
	            	} 
				},
				{
					field : 'merName', 
					title : '用户名称',
					sortable: false
				},
				{
					field : 'createTime', 
					title : '提现时间',
					sortable: true
				},
				{
					field : 'trxAmt', 
					title : '提现金额(元)',
					sortable: true
				},
				{
					field : 'status', 
					title : '提现状态',
					align : 'left',
					formatter: function(value, item, index) {
	            		return $.table.selectDictLabel(statusType, item.status);
	            	} 
				}]
            };
            $.table.init(options);
        });
        
        
    </script>
</body>
</html>